﻿using Google.Protobuf;

namespace Net.Public.Helper
{
    public static class NetHelper
    {
        public static T ParseFrom<T>(ByteString byteString) where T : IMessage<T>, new()
        {
            return new MessageParser<T>(() => new T()).ParseFrom(byteString);
        }
    }
}